<?php require('template/header.php') ?>
<!doctype html>
<html lang="zh-cn">
 <head>
  <meta charset="UTF-8">  
  <title>订单列表</title>
 </head>
 <body>
 <div id="page-wrapper">
 
 <center><h2>订单列表</h2></center>
 <table align="center" width="100%" border=1> 
 <tr>
   <th>订单编号</th>
   <th>用户编号</th>   
   <th>菜品编号</th>
   <th>订单数量</th>
   <th>价格</th>
   <th>地址</th>
   <th>操作</th>
 </tr>

 <?php
  foreach ($data['orders'] as $row) {
	 echo '<tr>';
	 echo '<td>'.$row['oid'].'</td>';
	 echo '<td>'.$row['uid'].'</td>';	 
	 echo '<td>'.$row['fids'].'</td>';
	 echo '<td>'.$row['number'].'</td>';
	 echo '<td>'.$row['totalprice'].'</td>';
   echo '<td>'.$row['address'].'</td>';

		 
	 echo '<td><a href="index.php?c=order&m=delorder&oid='.$row['oid'].'" onClick="return confirm(\'确定要删除吗？\');">删除</a></td>';
	 echo '</tr>';  
  }
  echo '</table>';     
 ?>
 </div>

<?php require('template/footer.php') ?>